package com.xbts.common.core.domain.model;

import com.xbts.common.annotation.Excel;

import javax.validation.constraints.Email;

/**
 * 用户注册对象
 *
 * @author xbts
 */
public class RegisterBody extends LoginBody {

    /**
     * 短信验证码
     */
    private String smsCode;

    /**
     * 身份证号码/社会统一信用代码
     */
    private String number;

    /**
     * 用户昵称/单位全称
     */
    @Excel(name = "用户名称")
    private String nickName;

    /**
     * 用户昵称
     */
    @Excel(name = "用户类型（00系统用户 01普通用户", readConverterExp = "00=系统用户,01=普通用户")
    private String userType;

    /**
     * 用户邮箱
     */
    @Excel(name = "用户邮箱")
    @Email(message = "邮箱格式不正确")
    private String email;

    /**
     * 手机号码
     */
    @Excel(name = "手机号码")
    private String phonenumber;
    /**
     * 用户性别
     */
    @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知")
    private String sex;

    /**
     * 用户头像
     */
    private String avatar;

    /**
     * 凭证地址
     */
    private String certificatePath;
    /**
     * 通讯地址
     */
    private String address;
    /**
     * 通讯地址详细地址
     */
    private String addressDetail;
    /**
     * 身份证号码/社会统一信用代码
     */
    private String code;
    /**
     * 真实姓名
     */
    private String realName;

    public String getSmsCode() {
        return smsCode;
    }

    public void setSmsCode(String smsCode) {
        this.smsCode = smsCode;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getCertificatePath() {
        return certificatePath;
    }

    public void setCertificatePath(String certificatePath) {
        this.certificatePath = certificatePath;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddressDetail() {
        return addressDetail;
    }

    public void setAddressDetail(String addressDetail) {
        this.addressDetail = addressDetail;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public void setCode(String code) {
        this.code = code;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }
}
